﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="CreateUser.aspx.cs" Inherits="CreateUser" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript">
    var isHomePage = "false";
    $(document).ready(function () {
        $('.mainDiv').css({ position: "absolute", top: "36px" });
    });
    loadMenu(); 
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="clearfix">
</div>
<div class="titlename">
ĐĂNG KÝ TÀI KHOẢN
</div>
<hr color="#990000">
<br />
    <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" 
    CreateUserButtonText="Tạo tài khoản">
        <CreateUserButtonStyle CssClass="buttoncreate" />
        <WizardSteps>
            <asp:CreateUserWizardStep runat="server">
                <ContentTemplate>
                    <table cellspacing="10" class="lineuser">
                        <tr>
                            <td align="left" colspan="2" class="titleuser">
                                Thông tin đăng nhập</td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Tên đăng nhập:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="UserName" runat="server" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                    ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                    ToolTip="User Name is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Mật khẩu:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                    ControlToValidate="Password" ErrorMessage="Password is required." 
                                    ToolTip="Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="ConfirmPasswordLabel" runat="server" 
                                    AssociatedControlID="ConfirmPassword">Xác nhận mật khẩu:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password" 
                                    Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" 
                                    ControlToValidate="ConfirmPassword" 
                                    ErrorMessage="Confirm Password is required." 
                                    ToolTip="Confirm Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="titleuser">
                                Thông tin khách hàng</td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="txtHo" runat="server" AssociatedControlID="UserName">Họ:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txthokh" runat="server" Width="200px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="Label1" runat="server" AssociatedControlID="UserName">Tên lót:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txttenlot" runat="server" Width="200px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="txttenchinh" runat="server" AssociatedControlID="UserName">Tên:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txttenkh" runat="server" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                    ControlToValidate="txttenkh" ErrorMessage="User Name is required." 
                                    ToolTip="Ten is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="Label2" runat="server" AssociatedControlID="UserName">Tên công ty:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txttencongty" runat="server" Width="200px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="txtngaysinh" runat="server" AssociatedControlID="UserName">Ngày sinh:</asp:Label>
                            </td>
                            <td>
                                <asp:DropDownList ID="drngay" runat="server">
                                </asp:DropDownList>/
                           
                                <asp:DropDownList ID="drthang" runat="server">
                                </asp:DropDownList>/
                           
                                <asp:DropDownList ID="drnam" runat="server">
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator InitialValue="dd" ID="RequiredFieldValidator4" 
                                    Display="Dynamic" ValidationGroup="CreateUserWizard1" runat="server" 
                                    ControlToValidate="drngay" Text="*" 
                                    ErrorMessage="ErrorMessage">
                                </asp:RequiredFieldValidator>
                                <asp:RequiredFieldValidator InitialValue="mm" ID="RequiredFieldValidator6" 
                                    Display="Dynamic" ValidationGroup="CreateUserWizard1" runat="server" 
                                    ControlToValidate="drthang" Text="*" 
                                    ErrorMessage="ErrorMessage">
                                </asp:RequiredFieldValidator>
                                <asp:RequiredFieldValidator InitialValue="yy" ID="RequiredFieldValidator9" 
                                    Display="Dynamic" ValidationGroup="CreateUserWizard1" runat="server" 
                                    ControlToValidate="drnam" Text="*" 
                                    ErrorMessage="ErrorMessage">
                                </asp:RequiredFieldValidator>(Ngày/tháng/năm)
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="lbldienthoai" runat="server" AssociatedControlID="UserName">Điện thoại:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtdienthoai" runat="server" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                    ControlToValidate="txtdienthoai" ErrorMessage="User Name is required." 
                                    ToolTip="Dien thoai is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>

                        <tr>
                            <td align="right">
                                <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="Email" runat="server" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="EmailRequired" runat="server" 
                                    ControlToValidate="Email" ErrorMessage="E-mail is required." 
                                    ToolTip="E-mail is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>

                        <tr>
                            <td align="right">
                                <asp:Label ID="lbldiachi" runat="server" AssociatedControlID="Email">Địa chỉ:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtdiachi" runat="server" Width="210px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                                    ControlToValidate="txtdiachi" ErrorMessage="E-mail is required." 
                                    ToolTip="Dia Chi is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="Label4" runat="server" AssociatedControlID="drquocgia">Quốc gia:</asp:Label>
                            </td>
                            <td>
                                <asp:DropDownList ID="drquocgia" runat="server">
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator InitialValue="----- Chọn quốc gia -----" ID="Req_ID" 
                                    Display="Dynamic" ValidationGroup="CreateUserWizard1" runat="server" 
                                    ControlToValidate="drquocgia" Text="*" 
                                    ErrorMessage="ErrorMessage">
                                </asp:RequiredFieldValidator>
                            </td>
                        </tr>

                        <tr>
                            <td align="right">
                                <asp:Label ID="Label3" runat="server" AssociatedControlID="txttinhthanh">Tỉnh thành:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txttinhthanh" runat="server" Width="210px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                    ControlToValidate="txttinhthanh" ErrorMessage="E-mail is required." 
                                    ToolTip="Tỉnh thành is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>

                        <tr>
                            <td align="right">
                                <asp:Label ID="Label5" runat="server" AssociatedControlID="txtquanhuyen">Quận huyện:</asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtquanhuyen" runat="server" Width="210px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                    ControlToValidate="txtquanhuyen" ErrorMessage="Quận huyện is required." 
                                    ToolTip="Quận huyện is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        
                        <tr>
                            <td align="center" colspan="2">
                                <asp:CompareValidator ID="PasswordCompare" runat="server" 
                                    ControlToCompare="Password" ControlToValidate="ConfirmPassword" 
                                    Display="Dynamic" 
                                    ErrorMessage="Mật khẩu và xác nhận mật khẩu phải trùng nhau" 
                                    ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2" style="color:Red;">
                                <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:CreateUserWizardStep>
            <asp:CompleteWizardStep runat="server">
                <ContentTemplate>
                    <table>
                        <tr>
                            <td align="center">
                                Complete</td>
                        </tr>
                        <tr>
                            <td>
                                Tài khoản được đăng ký thành công.</td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Button ID="ContinueButton" runat="server" CausesValidation="False" 
                                    CommandName="Continue" Text="Quay về trang chủ" ValidationGroup="CreateUserWizard1" PostBackUrl="~/Default.aspx" />
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:CompleteWizardStep>
        </WizardSteps>
    </asp:CreateUserWizard>

</asp:Content>

